home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 December / PC Answers December 1995 (disc errors).iso / mxc / intro.dir / 00005_MS for Intro.ls < prev    next >
Encoding:
Text File  |  1995-05-04  |  4.7 KB  |  190 lines

  1. global fixPal, myLine, auto, ok, gsliderbar, fullMoov, csn, lem, palName, bd, gAudBlrb, tpal, myLine2, gExtraVid, gdirmovie, gmyLineKeep, gBackColor, gForeColor, profileVid, gVolume, gFirstTimeIn
  2.  
  3. on startMovie
  4.   if the machineType < 256 then
  5.     openXLib("XPALETTE")
  6.     set fixPal to fixPalette(mnew, the stageLeft, the stageTop, the stageRight, the stageBottom)
  7.   else
  8.     openXLib("XPALETTE.dll")
  9.     set fixPal to XPALETTE(mnew)
  10.   end if
  11.   if myLine <> 1 then
  12.     set the controller of cast 101 to 0
  13.   end if
  14.   if myLine <> 1 then
  15.     set the video of cast 101 to 0
  16.   end if
  17.   set auto to 0
  18.   set ok to 3
  19.   set myLine to 1
  20.   set myLine2 to 1
  21.   set gmyLineKeep to 1
  22.   set profileVid to 0
  23.   set tpal to 201
  24.   set fullMoov to the duration of cast 101
  25.   set gExtraVid to 1
  26.   set csn to 6
  27.   cursor(0)
  28. end
  29.  
  30. on buttonsUp
  31.   set the castNum of sprite 8 to 27
  32.   set the castNum of sprite 11 to 51
  33.   set the castNum of sprite 12 to 52
  34.   set the castNum of sprite 13 to 53
  35.   set the castNum of sprite 14 to 54
  36.   set the castNum of sprite 15 to 55
  37.   set the castNum of sprite 16 to 56
  38.   set the castNum of sprite (myLine + 10) to myLine + 60
  39.   updateStage()
  40. end
  41.  
  42. on setVid
  43.   if myLine = -1 then
  44.     exit
  45.   end if
  46.   if myLine2 = myLine then
  47.     exit
  48.   end if
  49.   if myLine >= 1 then
  50.     set the castNum of sprite 24 to 26
  51.     updateStage()
  52.   end if
  53.   set the locV of sprite 3 to -500
  54.   set the locV of sprite 4 to -500
  55.   set the locV of sprite 5 to -500
  56.   set the locV of sprite 6 to -500
  57.   set the locV of sprite 7 to -500
  58.   blankBut()
  59.   updateStage()
  60.   set the castNum of sprite 24 to myLine + 100
  61.   set fullMoov to the duration of cast (myLine + 100)
  62.   set palName to myLine + 200
  63.   puppetPalette(palName)
  64.   patchPal()
  65.   set myLine2 to myLine
  66.   set the locV of sprite 3 to 40
  67.   set the locV of sprite 4 to 74
  68.   set the locV of sprite 5 to 115
  69.   set the locV of sprite 6 to 155
  70.   set the locV of sprite 7 to 191
  71.   set the video of cast (myLine + 100) to 1
  72.   set the controller of cast (myLine + 100) to gsliderbar
  73.   updateStage()
  74.   set the volume of sprite 24 to gVolume
  75.   cursor(0)
  76. end
  77.  
  78. on autoPlay
  79.   set fullMoov to the duration of cast (myLine + 100)
  80.   set the castNum of sprite 7 to 35
  81.   updateStage()
  82.   set auto to 1
  83. end
  84.  
  85. on check
  86.   global myLine, auto, csn, gExtraVid, fullMoov
  87.   if myLine > (csn + gExtraVid) then
  88.     exit
  89.   end if
  90.   if (the movieTime of sprite 24 > 0) and (the movieTime of sprite 24 <> fullMoov) then
  91.     exit
  92.   end if
  93.   if (auto = 0) and (the movieTime of sprite 24 = fullMoov) then
  94.     if myLine = (csn + gExtraVid) then
  95.       set the movieTime of sprite 24 to 0
  96.       exit
  97.     end if
  98.   end if
  99.   if (auto = 1) and (the movieRate of sprite 24 = 0) then
  100.     if the movieTime of sprite 24 = fullMoov then
  101.       if myLine = csn then
  102.         set auto to 0
  103.         set myLine to 1
  104.         set the castNum of sprite 7 to 25
  105.         buttonsUp()
  106.         exit
  107.       else
  108.         set myLine to myLine + 1
  109.         buttonsUp()
  110.       end if
  111.     else
  112.       if (the movieTime of sprite 24 = 0) and (auto = 1) then
  113.         set the movieRate of sprite 24 to 1
  114.       else
  115.         set the movieRate of sprite 24 to 0
  116.       end if
  117.     end if
  118.   end if
  119. end
  120.  
  121. on blankBut
  122.   global gAudBlrb, auto
  123.   if myLine = 1 then
  124.     set the castNum of sprite 4 to 30
  125.     set the castNum of sprite 6 to 24
  126.     if auto = 0 then
  127.       set the castNum of sprite 7 to 25
  128.     else
  129.       set the castNum of sprite 7 to 35
  130.     end if
  131.   else
  132.     if (myLine > 1) and (myLine < csn) then
  133.       set the castNum of sprite 4 to 22
  134.       set the castNum of sprite 6 to 24
  135.       if auto = 0 then
  136.         set the castNum of sprite 7 to 25
  137.       else
  138.         set the castNum of sprite 7 to 35
  139.       end if
  140.     else
  141.       if myLine = csn then
  142.         set the castNum of sprite 4 to 22
  143.         set the castNum of sprite 6 to 40
  144.         if auto = 0 then
  145.           set the castNum of sprite 7 to 25
  146.         else
  147.           set the castNum of sprite 7 to 35
  148.         end if
  149.       else
  150.         if myLine = (csn + gExtraVid) then
  151.           set the castNum of sprite 4 to 30
  152.           set the castNum of sprite 6 to 40
  153.           set the castNum of sprite 7 to 50
  154.         else
  155.           if gAudBlrb = 1 then
  156.             set the castNum of sprite 4 to 30
  157.             set the castNum of sprite 6 to 40
  158.             set the castNum of sprite 7 to 50
  159.           end if
  160.         end if
  161.       end if
  162.     end if
  163.   end if
  164. end
  165.  
  166. on flushMe
  167.   if the machineType = 256 then
  168.     openXLib("GLOBMEM")
  169.     set OBJ to GLOBMEM(mnew)
  170.     OBJ(mFreeHandles, 8192)
  171.     OBJ(mFreeHandles, 8192)
  172.     OBJ(mFreeHandles, 8192)
  173.     OBJ(mdispose)
  174.   end if
  175. end
  176.  
  177. on patchPal
  178.   fixPal(mPatchIt)
  179. end
  180.  
  181. on stopMovie
  182.   if the machineType < 256 then
  183.     fixPal(mdispose)
  184.     closeXLib("XPALETTE")
  185.   else
  186.     fixPal(mdispose)
  187.     closeXLib("XPALETTE.dll")
  188.   end if
  189. end
  190.